import Aura from '@primevue/themes/aura';

export default defineNuxtConfig({
  app: {
    head: {
      title: "Nuxt App"
    },
    link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }]
  },
  devtools: { enabled: false },
  css: [
    // "@/assets/main.css",
    '~/assets/css/common.scss',
    "primeicons/primeicons.css",
    'animate.css/animate.css'
  ],
  modules: ["@primevue/nuxt-module"],
  primevue: {
    options: {
      theme: {
        preset: Aura
      },
      ripple: true
    },
    plugins: [
      '@/plugins/echarts'
    ],
    autoImport: true
  },
  vite: {
    build: {
      chunkSizeWarningLimit: 1500, //打包时超过1500kb的提示
      assetsInlineLimit:1024 * 1024, //设置打包时静念资源小于1M时，打包成base64格式变成内联样式，只要js加载出米，图片就会加载出米，0延迟
      reportCompressedSize:false //打包时是否生成打包体积报告，提升构建速度
    }
  },
  devServer: {
    port: 3000,
    "host": "0.0.0.0"
  }
});
